package com.easy.dao;

import com.easy.bean.Cart;
import com.easy.bean.Cart;
import com.easy.util.LayData;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CartDao {

    List<Cart> cartList(@Param("userid") int userid);
    List<Cart> getCartList(@Param("page") Page page, @Param("text")String text);
    int addCart(@Param("cart") Cart cart);
    int editCart(@Param("cart") Cart cart);
    int deleteCart(@Param("userid") int userid,@Param("proid") int proid);
    int CartCount(@Param("text") String text);
    double totalPrice(@Param("id")int userid);
    int deletechecked(@Param("id") int userid);
}
